package com.niiwoo.civet.account.dao.mapper;

import com.niiwoo.civet.account.dao.entity.AccountCheckingRecharge;
import com.niiwoo.civet.account.dto.request.AccountCheckingRechargeRequestDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 充值对账
 */
public interface AccountCheckingRechargeMapperExt extends AccountCheckingRechargeMapper {

    /**
     * 分页查询
     * @param accountCheckingRechargeRequestDTO
     */
    public List<AccountCheckingRecharge> queryCheckingRechargePage(AccountCheckingRechargeRequestDTO accountCheckingRechargeRequestDTO);

    /**
     * 批量修改
     * @param accountCheckingRechargeList
     * @return
     */
    public int updateBatch(List<AccountCheckingRecharge> accountCheckingRechargeList);

    /**
     * 批量添加
     * @param accountCheckingRechargeList
     * @return
     */
    int insertBatch(List<AccountCheckingRecharge> accountCheckingRechargeList);

    /**
     * 根据对账记录删除ID
     * @param recordId
     */
    int deleteByRecordId(Long recordId);

    int updateStatusByRecordId(@Param("checkingRecordId") Long checkingRecordId, @Param("status") Byte status);

}